// import com.alibaba.druid.sql.ast.SQLName_ptr;
// import com.alibaba.druid.sql.ast.SQLStatementImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLImportDatabaseStatement.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../SQLName.h"

SQLName_ptr SQLImportDatabaseStatement::getDb()
{
  return db;
}

void SQLImportDatabaseStatement::setDb(SQLName_ptr db)
{
  this->db = db;
}

SQLName_ptr SQLImportDatabaseStatement::getStatus()
{
  return status;
}

void SQLImportDatabaseStatement::setStatus(SQLName_ptr status)
{
  this->status = status;
}

void SQLImportDatabaseStatement::accept0(SQLASTVisitor_ptr v)
{
  if (v->visit(SharedObject(SQLImportDatabaseStatement)))
  {
    acceptChild(v, db);
    acceptChild(v, status);
  }
  v->endVisit(SharedObject(SQLImportDatabaseStatement));
}
